import Vue from 'vue' // only-runtime

// import VueRouter from 'vue-router'
import VueRouter from 'vue-router'

import indexInfo from './components/tabbar/indexInfo.vue'
import teplate2 from './components/tabbar/teplate2.vue'
import teplate3 from './components/tabbar/teplate3.vue'
import teplate4 from './components/tabbar/teplate4.vue'
import newMovieList from './components/movieList/newMovieList.vue'
import newDetail from './components/movieList/newDetail.vue'
import newBookList from './components/bookList/newBookList.vue'
import newPhoto from './components/photoList/newPhoto.vue'


Vue.use(VueRouter)

var router = new VueRouter({
    routes: [
        { path: '/', redirect: '/indexInfo' },
        { path: '/indexInfo', component: indexInfo },
        { path: '/teplate2', component: teplate2 },
        { path: '/teplate3', component: teplate3 },
        { path: '/teplate4', component: teplate4 },
        { path: '/indexInfo/newMovieList', component: newMovieList },
        { path: '/indexInfo/newBookList', component: newBookList },
        { path: '/indexInfo/newDetail/:type/:id', component: newDetail },
        { path: '/indexInfo/newPhotoList', component: newPhoto },
    ],
    linkActiveClass: 'mui-active' // 覆盖默认类
})

export default router